package com.common.core.utils;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author zhuxiaomeng
 * @date 2017/12/19.
 * @email 154040976@qq.com
 * 查询返回json格式依照ui默认属性名称
 */
@Data
public class ReType<T> implements Serializable{
  private static final long serialVersionUID = 8295379702893763984L;

  /**状态*/
  private int code=0;
  /**状态信息*/
  private String msg="";
  /**数据总数*/
  private long count;

  private List<T> data;

  public ReType() {
  }

  public ReType(long count, List<T> data) {
    this.count = count;
    this.data = data;
  }
}
